#ifndef __DS1302_UTILS_H__
#define __DS1302_UTILS_H__

unsigned char BCD_Code_2_Decimal(unsigned char BCD_Code);
unsigned char Decimal_2_BCD_Code(unsigned char Decimal_Code);
void DS1302_Write_Common(unsigned char Common);
void DS1302_Write_Able(unsigned char writeAble);
unsigned char DS1302_ReadByte(unsigned char commFlag);
void DS1302_WriteByte(unsigned char commFlag, unsigned char Data);
void DS1302_SetTime(char DS1302_Times[7]);
void DS1302_ReadTime(char DS1302_Times[7]);
void judgeDateTime(char DS1302_Times[7]);

#endif // !__DS1302_UTILS_H__